import React from 'react';
import {useLocation} from "react-router-dom";

function Detail(props) {


    const {state}=useLocation()
    return (
        <div>
            <ul>
                <li>ID:{state.id}</li>
                <li>title:{state.title}</li>
                <li>content:{state.content}</li>
            </ul>
        </div>
    );
}

export default Detail;